﻿using System;
using System.Data;
using Amoo.Code.Common;

namespace Amoo.Code.Entity
{
    public class LogAcessosUsuario
    {
        public int idUsuario { get; set; }
        public DateTime dtDataAcesso { get; set; }
        protected internal static LogAcessosUsuario Load(System.Data.DataRow dr)
        {
            return new LogAcessosUsuario()
            {
                idUsuario = Convert.ToInt32(dr["idUsuario"]),
                dtDataAcesso = Convert.ToDateTime(dr["dtDataAcesso"])
            };
        }
        protected internal static LogAcessosUsuario Load(IDataReader dr)
        {
            return new LogAcessosUsuario()
            {
                idUsuario = dr.GetInt32(0),
                dtDataAcesso = dr.GetDateTime(1)
            };
        }
    }
}
